/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package spelet;

import java.awt.Graphics;
import java.awt.Image;

/**
 *
 * @author Tom
 */
public class Sprite {
    private Image image;

    public Sprite(Image image){
         this.image=image;
    }

    public int getWidth() {
        return image.getWidth(null);
    }

    public int getHeight() {
	return image.getHeight(null);
    }

    //Ritar ut spriten,
    public void draw(Graphics g,int x,int y) {

	g.drawImage(image,x,y,null);
    }




}